package online.cmagic.controller;

import online.cmagic.feign.ProviderFeignService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author wangsc
 * @date 2020年09月10日 10:40
 * @since JDK 1.8
 */
@RestController
public class ConsumerController {

    @Autowired
    private ProviderFeignService providerFeignService;

    @RequestMapping("consumer/{id}")
    public String consumer(@PathVariable("id") String id){
        return providerFeignService.provider(id);
    }
}
